<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html lang="zh-CN">
  <head>
    <base href="<%=basePath%>">
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <title>设计云登录</title>
    
	<link href="lib/bootstrap-3.3.5/css/bootstrap.min.css" rel="stylesheet">
	<link href="designCloud/css/common.css" rel="stylesheet"></link>
	<link href="designCloud/css/login.css" rel="stylesheet"></link>
	
	<!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
  </head>
  
  <body class="indexBody">
  	<div class="indexBox">
  		<form class="indexForm loginForm" action="">
  			<div class="index-title">登录页面</div>
			<div class="list-box">
				<div class="list-tr">
					<input type="text" name="loginNumber" id="loginNumber" placeholder="用户名/手机号" />
				</div>
				<div class="list-tr">
					<input type="password" name="loginPass" id="loginPass" placeholder="密码" />
				</div>
			</div>
			<div class="handle-bar">
				<div class="rememberPass"><input name="" type="checkbox" value="" checked="checked"> 记住我</div>
				<a class="forgetPass" href="designCloud/forgetPass.jsp">忘记密码</a>
			</div>
			
			<div class="foot-box btn1" id="loginSure">
				<a class="foot-butten a-white" href="javascript:;">登录</a>
			</div>
			
			<div class="error-resgister">
				<span id="errorContent"></span><!-- 错误提示 -->
			</div>
			
			<div class="bottom-bar">
				<div class="bottom-line"></div>
				<a class="bottom-btn" href="designCloud/register.jsp">立即注册</a>
			</div>
  		</form>
  		
  		<div id="copyrightPageBox"></div>
  	</div>
  	
  	<script src="lib/jquery/1.11.3/jquery.min.js"></script>
  	<script src="designCloud/js/copyright.js"></script>
  	
  	<script type="text/javascript">
		$(document).ready(function(){
				loginSure();
			});
			
			function loginSure(){
				$("#loginSure").click(function(){
					var loginNumber=$("#loginNumber").val();
					var loginPass=$("#loginPass").val();
					
					if(loginNumber=="" || loginPass==""){
						$(".error-resgister").css("display","block");
						$("#errorContent").text("您所填信息不完整！");
					}
					else{
						$("#errorContent").text("");
						$("#loginSure a").text("登录中...");
						window.location.href="designCloud/console/userManage.jsp";
					}
					
				});
			
			}
	</script>
    
  </body>
</html>
